//
//  MeDefine.h
//  Screen
//
//  Created by Season02 on 7/5/16.
//  Copyright © 2016 Season02. All rights reserved.
//

#import "MGCScreenCommon.h"
#import "SDVersion.h"
#import "MGCSettingDefine.h"

#ifndef MeDefine_h
#define MeDefine_h

/** ----FontSize---- **/
#define MGCMe_PayView_AdvCard_Cell_Title_Font_Size ([SDVersion deviceSize] > Screen4inch ? 15 : 12)
#define MGCMe_PayView_AdvCard_Cell_Hint_Font_Size ([SDVersion deviceSize] > Screen4inch ? 13 : 10)

#define MGCMe_PayView_PayType_Title_Font_Size ([SDVersion deviceSize] > Screen4inch ? 14 : 11)
#define MGCMe_PayView_PriceCard_Title_Font_Size ([SDVersion deviceSize] > Screen4inch ? 16 : 13)
#define MGCMe_PayView_PriceCard_Licence_Font_Size ([SDVersion deviceSize] > Screen4inch ? 14 : 11)

#define MGCMe_PayView_PriceCard_Cell_Hitn_Font_Size ([SDVersion deviceSize] > Screen4inch ? 13 : 10)
#define MGCMe_PayView_Cell_Title_Font_Size ([SDVersion deviceSize] > Screen4inch ? 15 : 12)
#define MGCMe_MeView_TableView_Head_UserName_Font_Size ([SDVersion deviceSize] > Screen4inch ? 15 : 12)
#define MGCMe_MeView_TableView_Head_UserTip_Font_Size ([SDVersion deviceSize] > Screen4inch ? 12 : 10)

/** ----Color---- **/
#define MGCMe_PayView_PayTypeCard_Licence_Color [MGCScreenCommon getColor : @"6c6c6c"]
#define MGCMe_PayView_PriceCard_Cell_Bottom_Line_Color [MGCScreenCommon getColor : @"d4d4d4"]
#define MGCMe_PayView_PriceCard_Hint_Text_Color [MGCScreenCommon getColor : @"b60f23"]
#define MGCMe_MeView_TableView_Head_Background_Color [MGCScreenCommon getColor : @"9cc813"]
#define MGCMe_MeView_TableView_Head_UserTip_Background_Color [MGCScreenCommon getColor : @"eeeeee"]
#define MGCMe_PayView_PriceCard_Cell_RcrommandBg_Background_Color [MGCScreenCommon getColor : @"e7c227"]

/** ----Length---- **/
#define MGCMe_Setting_Icon_Width ([MGCScreenCommon screenWidth] * 0.0586)

#define MGCMe_PayView_AdvCard_Icon_Width ([MGCScreenCommon screenWidth] * 0.1026)

#define MGCMe_PayView_PayTypeCard_Icon_Width ([MGCScreenCommon screenWidth] * 0.08933)

#define MGCMe_PayView_PayTypeCard_Arrow_Width ([MGCScreenCommon screenWidth] * 0.02133)
#define MGCMe_PayView_PayTypeCard_Arrow_Height ([MGCScreenCommon screenWidth] * 0.036)

#define MGCMe_PayView_Cell_Width ([MGCScreenCommon screenWidth] * 0.92)

#define MGCMe_PayView_PriceCard_RecommandBg_Height ([MGCScreenCommon screenWidth] * 0.034)
#define MGCMe_MeView_TableView_Head_Height ([MGCScreenCommon screenWidth] * 0.285)
#define MGCMe_MeView_TableView_Cell_Height ([MGCScreenCommon screenWidth] * 0.13)
#define MGCMe_MeView_TableView_Head_UserImage_Diameter ([MGCScreenCommon screenWidth] * 0.16)
#define MGCMe_MeView_TableView_Head_UserTip_Width ([MGCScreenCommon screenWidth] * 0.356)
#define MGCMe_MeView_TableView_Head_UserTip_Height ([MGCScreenCommon screenWidth] * 0.064)
#define MGCMe_MeView_TableView_Head_UserTipImage_Width ([MGCScreenCommon screenWidth] * 0.1027)
#define MGCMe_MeView_TableView_Head_UserTipImage_Height ([MGCScreenCommon screenWidth] * 0.048)

#define MGCMe_PayView_PriceCard_Head_Height ([MGCScreenCommon screenWidth] * 0.184)
#define MGCMe_PayView_PriceCard_Price_Height ([MGCScreenCommon screenWidth] * 0.54)
#define MGCMe_PayView_PriceCard_Height (MGCMe_PayView_PriceCard_Head_Height + MGCMe_PayView_PriceCard_Price_Height)

#define MGCMe_PayView_Card_Gap_Height ([MGCScreenCommon screenWidth] * 0.0333)

#define MGCMe_PayView_PayTypeCard_Height ([MGCScreenCommon screenWidth] * 0.368)

#define MGCMe_PayView_Cell_Height ([MGCScreenCommon screenWidth] * 0.1373)

#define MGCMe_PayView_AdvCard_Height ([MGCScreenCommon screenWidth] * 0.893)

/** ----Space---- **/
#define MGCMe_Setting_Icon_Top_Space ([MGCScreenCommon screenWidth] * 0.008)
#define MGCMe_Setting_Icon_Left_Space ([MGCScreenCommon screenWidth] * 0.04)

#define MGCMe_PayView_AdvCard_Title_Bottom_Sapce ([MGCScreenCommon screenWidth] * 0.0266)
#define MGCMe_PayView_AdvCard_Title_Top_Sapce ([MGCScreenCommon screenWidth] * 0.046)

#define MGCMe_PayView_PayTypeCard_Offset_Of_Icon_And_Title ([MGCScreenCommon screenWidth] * 0.0133)

#define MGCMe_PayView_Left_Space ([MGCScreenCommon screenWidth] * 0.03733)

#define MGCMe_PayView_PriceCard_Title_Bottom_Offet ([MGCScreenCommon screenWidth] * 0.0213)
#define MGCMe_PayView_PriceCard_RecommandBg_Left_Offet ([MGCScreenCommon screenWidth] * 0.0133)

#define MGCMe_PayView_PriceCard_Title_Left_Offet ([MGCScreenCommon screenWidth] * 0.035)
#define MGCMe_PayView_PriceCard_Price_Right_Offet ([MGCScreenCommon screenWidth] * 0.00666)
#define MGCMe_PayView_PriceCard_Hint_Bottom_Offet ([MGCScreenCommon screenWidth] * 0.00933)

#define MGCMe_MeView_TableView_Head_UserName_Offet_of_Head_Center ([MGCScreenCommon screenWidth] * 0.016)
#define MGCMe_MeView_TableView_Head_UserName_Offet_Of_Head ([MGCScreenCommon screenWidth] * 0.0133)

#define MGCMe_MeView_TableView_Head_SettingButton_Right_Space ([MGCScreenCommon screenWidth] * 0.037)
#define MGCMe_MeView_TableView_Head_UserImage_Left_Space ([MGCScreenCommon screenWidth] * 0.0547)
#define MGCMe_MeView_TableView_Head_UserImage_Top_Space ([MGCScreenCommon screenWidth] * 0.0693)

#define MGCMe_MeView_TableView_Head_UserName_Top_Space ( ([MGCScreenCommon screenWidth] * 0.0267) + MGCMe_MeView_TableView_Head_UserImage_Top_Space )
#define MGCMe_MeView_TableView_Head_UserName_Left_Space ( ([MGCScreenCommon screenWidth] * 0.0133) + MGCMe_MeView_TableView_Head_UserImage_Left_Space + MGCMe_MeView_TableView_Head_UserImage_Diameter )

#define MGCMe_MeView_TableView_Head_UserTip_Left_Space ( ([MGCScreenCommon screenWidth] * 0.016) + MGCMe_MeView_TableView_Head_UserImage_Left_Space + MGCMe_MeView_TableView_Head_UserImage_Diameter )

#define MGCMe_MeView_TableView_Head_UserTip_Top_Space ( ([MGCScreenCommon screenWidth] * 0.0147) + MGCMe_MeView_TableView_Head_UserName_Top_Space + MGCMe_MeView_TableView_Head_UserName_Font_Size )

#define MGCMe_MeView_TableView_Head_UserCrown_Left_Offset ([MGCScreenCommon screenWidth] * 0.0093)
#define MGCMe_MeView_TableView_Head_UserTip_Font_Left_Offset ([MGCScreenCommon screenWidth] * 0.007)

//** -----Function----- **//
#define setFontSizeByLanguage(x,y) (y * x / ([MGCSettingDone areWeEnglish] ? 1.5 : 1))



#endif /* MeDefine_h */
